/*
* Java Card File Parser 
* Based on openjcvm project 
*/

package org.naive.metawatch.converter.exp;

import org.naive.metawatch.converter.parser.*;

/**
 *
 * @author Andrew Butenko
 */
public class ExpInfo extends Parseable {

    @ParsedInt(FieldSize.INT)
    public int magic;
    @ParsedInt(FieldSize.BYTE)
    public int minorVersion;
    @ParsedInt(FieldSize.BYTE)
    public int majorVersion;
    @Parsed(ConstantPool.class)
    public ConstantPool constantPool;
    @ReferencesConstant
    @ParsedInt(FieldSize.SHORT)
    public int packageIndex;
    @ParsedArray(indexSize = FieldSize.BYTE, itemClass = ClassInfo.class)
    public ClassInfo[] classes;

    @Override
    public String toString() {
        return toString("\t", constantPool);
    }
}
